package com.glodon.paas.exception.i18n;

public interface ErrorCode {	
	// commons exception
	public static final int UNDEFINED_ERROR = 10000;

	public static final int SYSTEM_ERROR = 10001;
	
	public static final int SYSTEM_NOT_FOUND = 10002;
	
	public static final int ACCESS_FORBIDDEN = 10003;
	
	public static final int INTERNAL_API_ERROR = 10006;
	
	public static final int UNIMPLEMENT = 10007;
	
	public static final int PERSISTENCE_ERROR = 10008;
	
	public static final int DATA_DUPLICATION = 10009;
	
	public static final int PRIVILEGE_ERROR = 10010;
	
	public static final int NOT_FOUND = 10011;
	
	public static final int VALIDATE_ERROR = 10012;
	
	public static final int EXTERNAL_API_ERROR = 10013;
	
	public static final int USER_NOT_EXIST = 10014;

	public static final int NO_SUPPORT = 10015;
	
	public static final int AUTHENTICATION_ERROR = 10016;
	
	// account exception	
	public static final int ACCOUNT_ERROR = 20001;	
	
	public static final int INVALIDATE_URL = 20003;
	
	public static final int LINKED_ERROR = 20004;
	
	public static final int PASSWORD_ERROR = 20005;
	
	public static final int EMAIL_REGISTED = 20006;
	
	public static final int INACTIVE_ERROR = 20007;

	public static final int PASSWORD_CONFIRM_ERROR = 20009;
	
	public static final int ACCOUNT_NAME_BAD = 20010;
	
	public static final int CAPTCHA_CODE_ERR = 20011; 	//校验码错误
	
	public static final int CANNOT_ADD_SELF = 21001;	//不能添加自己为联系人
	
	// document exception
	public static final int DOCUMENT_ERROR = 30001;
	
	public static final int FILE_NOT_EXIST = 30002;
	
	public static final int STORAGE_ERROR = 30003;
	
	public static final int CAN_NOT_DOWNLOAD = 30004;
	
	public static final int EXIST_SAME_FILE = 30005;
	
	public static final int INVALIDATE_FILE_NAME = 30006;
	
	public static final int EXIST_SAME_SHARE = 30007;
	
	public static final int SHARE_FILE_TO_SELF = 30008;
	
	public static final int SHARE_NOT_EXIST = 30009;
	
	public static final int FOLDER_EMPTY = 30010;
	
	public static final int EXIST_SAME_FOLDER = 30011;
	
	public static final int FILE_CHANGED = 30012;
	
	public static final int DOWNLOAD_PACKAGE = 30013;
	
	public static final int FILE_BEEN_DELETED = 30014;
	
	public static final int FILE_BEEN_RESTORED = 30015;
	
	public static final int PARAMETER_INCORRECT = 30016;
	
	public static final int FILE_SIZE_INCORRECT = 30017;
	
	public static final int NO_ENOUGH_SPACE = 30018;
	
	//project exception
	public static final int DUPLICATE_PROJECT = 40001;
	public static final int EMPTY_PROJECT_NAME = 40002;
	public static final int DUPLICATE_ROLE = 40003;
	public static final int MEMBER_NOT_EXIST = 40004;
	// org exception
	
	int DUPLICATE_SEND_MAIL = 50001;
	int DUPLICATE_INVITE = 50002;
	
}
